# -*- coding:utf-8 -*-
from selenium.webdriver.common.by import By
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from PageClass.fscIndexPageClass.fscIndexPage import FscIndexPage
from Util import logger



class MyAuditListPage(FscIndexPage):


    def __init__(self,driver):
        super().__init__(driver)

    def input_selectBoeNum(self, text):
        super().input_selectBoeNum(text)

    def click_selectButton(self):
        super().click_selectButton()

    _boeNumQueryResult = (By.XPATH, FscIndexPage._selectResult[-1] + '/td[3]/div/span/button')

    def getIntoBoe(self, boeNo):
        self.click(*self._boeNumQueryResult)
        logger.info(f'点击单号：{boeNo}，进入对应单据进行审批操作')
